/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.client.renderer.BufferBuilder;
/*    */ import net.minecraft.client.renderer.Tessellator;
/*    */ import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
/*    */ import net.minecraft.util.math.Vec3d;
/*    */ import net.minecraftforge.fml.relauncher.Side;
/*    */ import net.minecraftforge.fml.relauncher.SideOnly;
/*    */ 
/*    */ public class wl
/*    */ {
/*    */   public ho[] i;
/*    */   public ho[] w;
/*    */   public ho q;
/*    */   public xl[] g;
/*    */   
/*    */   @SideOnly(Side.CLIENT)
/*    */   public void v(int i, BufferBuilder bufferBuilder, float f) {
/* 19 */     if (this.q == null) {
/* 20 */       this.q = v();
/*    */     }
/*    */     
/* 23 */     boolean bool = (this.g != null && this.g.length > 0);
/*    */     
/* 25 */     if (i < 0) {
/* 26 */       i = 4;
/*    */     }
/*    */     
/* 29 */     if (bool) {
/* 30 */       bufferBuilder.func_181668_a(i, DefaultVertexFormats.field_181710_j);
/*    */     } else {
/* 32 */       bufferBuilder.func_181668_a(i, DefaultVertexFormats.field_181708_h);
/*    */     } 
/*    */ 
/*    */     
/* 36 */     for (int j = 0; j < this.i.length; j++) {
/*    */       
/* 38 */       if (bool) {
/* 39 */         bufferBuilder.func_181662_b((this.i[j]).w * f, (this.i[j]).q * f, (this.i[j]).g * f)
/* 40 */           .func_187315_a((this.g[j]).w, (this.g[j]).q)
/* 41 */           .func_181663_c(this.q.w, this.q.q, this.q.g).func_181675_d();
/*    */       } else {
/* 43 */         bufferBuilder.func_181662_b((this.i[j]).w * f, (this.i[j]).q * f, (this.i[j]).g * f).func_181663_c(this.q.w, this.q.q, this.q.g).func_181675_d();
/*    */       } 
/*    */     } 
/*    */     
/* 47 */     Tessellator.func_178181_a().func_78381_a();
/*    */   }
/*    */   
/*    */   public ho v() {
/* 51 */     Vec3d vec3d1 = new Vec3d(((this.i[1]).w - (this.i[0]).w), ((this.i[1]).q - (this.i[0]).q), ((this.i[1]).g - (this.i[0]).g));
/* 52 */     Vec3d vec3d2 = new Vec3d(((this.i[2]).w - (this.i[0]).w), ((this.i[2]).q - (this.i[0]).q), ((this.i[2]).g - (this.i[0]).g));
/*    */     
/* 54 */     Vec3d vec3d3 = vec3d1.func_72431_c(vec3d2).func_72432_b();
/*    */     
/* 56 */     return new ho((float)vec3d3.field_72450_a, (float)vec3d3.field_72448_b, (float)vec3d3.field_72449_c);
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\wl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */